home *** CD-ROM | disk | FTP | other *** search
- property meSprite, firstPos, origPos, mPos, originLocZ
- global gmObject
-
- on beginSprite me
- gmObject.reportComputer(me.spriteNum)
- meSprite = sprite(me.spriteNum)
- originLocZ = meSprite.locZ
- firstPos = meSprite.loc
- end
-
- on mouseDown me
- if (gmObject.moveCounter = 0) and (gmObject.whosNext = 0) then
- gmObject.whosNext = -1
- end if
- if gmObject.playMode = 0 then
- if gmObject.whosNext = -1 then
- meSprite.locZ = 155
- origPos = meSprite.loc
- mPos = the mouseLoc - origPos
- repeat while the mouseDown
- meSprite.loc = the mouseLoc - mPos
- updateStage()
- end repeat
- end if
- end if
- end
-
- on mouseUp me
- if gmObject.moveCounter = 0 then
- go("play")
- end if
- if gmObject.playMode = 0 then
- if gmObject.whosNext = -1 then
- gmObject.reportUserMove(me.spriteNum, meSprite.rect, origPos)
- meSprite.locZ = originLocZ
- end if
- end if
- end
-
- on mouseEnter me
- if gmObject.playMode = 0 then
- if gmObject.whosNext = -1 then
- cursor([500, 501])
- end if
- end if
- end
-
- on mouseLeave me
- cursor(0)
- end
-
- on endSprite me
- cursor(0)
- end
-